package com.jnzc.ocr.serv.third.prop;

import com.google.common.collect.Lists;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/22
 */
@Component
@ConfigurationProperties(prefix="sms")
public class SmsProp {

    // 阿里云短信
    private String product = "Dysmsapi";
    private String domain = "dysmsapi.aliyuncs.com";
    private String accessKeyId;
    private String accessKeySecret;

    private Boolean whiteListEnabled = false; // 是否启用白名单模式
    private List<String> whiteList = Lists.newArrayList(); // 号码白名单
    private String autograph; // 签名
    private Integer contentMaxLength = 70; // 短信内容长度

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public Boolean getWhiteListEnabled() {
        return whiteListEnabled;
    }

    public void setWhiteListEnabled(Boolean whiteListEnabled) {
        this.whiteListEnabled = whiteListEnabled;
    }

    public List<String> getWhiteList() {
        return whiteList;
    }

    public void setWhiteList(List<String> whiteList) {
        this.whiteList = whiteList;
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }

    public Integer getContentMaxLength() {
        return contentMaxLength;
    }

    public void setContentMaxLength(Integer contentMaxLength) {
        this.contentMaxLength = contentMaxLength;
    }
}
